#!/usr/bin/env bash

OPTS="-h localhost -P 3306 -udbuser -pdbuser -d --skip-add-drop-table data"

for table in "$@"
do
    mysqldump $OPTS $table >${table}.sql
done
